package com.sky.sky_server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = "com.sky")
@ConfigurationPropertiesScan(basePackages = "com.sky")  // 扫描@ConfigurationProperties注解
// @EnableConfigurationProperties(com.sky.sky_common.config.JwtProperties.class) // 单独某个配置类
@EnableTransactionManagement // 开启事务管理
@EnableCaching // 开启缓存
@EnableScheduling // 开启定时任务
public class SkyServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(SkyServerApplication.class, args);
	}
}
